package com.gsx.entity;


import java.util.Date;
import java.util.List;

/*评论*/
public class Comment {
    private Long comment_id;
    private String comment_nickname;/*昵称*/
    private String comment_email;/*邮箱*/
    private String comment_content;/*头像*/
    private String comment_avatar;/*评论内容*/
    private Date comment_createTime;/*创建时间*/
    private Long topParent_id;
    private Long user_id;

    private Long blog_id;
    private Blog blog;
    private boolean Comment_isdelete;

    private Long parentComment_id;
    private List<Comment> replyComment;
    private Comment parentComment;

    public Comment() {
    }

    @Override
    public String toString() {
        return "Comment{" +
                "comment_id=" + comment_id +
                ", comment_nickname='" + comment_nickname + '\'' +
                ", comment_email='" + comment_email + '\'' +
                ", comment_content='" + comment_content + '\'' +
                ", comment_avatar='" + comment_avatar + '\'' +
                ", comment_createTime=" + comment_createTime +
                ", topParent_id=" + topParent_id +
                ", blog_id=" + blog_id +
                ", blog=" + blog +
                ", parentComment_id=" + parentComment_id +
                ", replyComment=" + replyComment +
                ", parentComment=" + parentComment +
                '}';
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public boolean isComment_isdelete() {
        return Comment_isdelete;
    }

    public void setComment_isdelete(boolean comment_isdelete) {
        Comment_isdelete = comment_isdelete;
    }

    public boolean TopParent_idIsNUll(){
        if(topParent_id==null){
            return true;
        }
        return false;
    }
    public boolean replyIsEmpty(){
        if(replyComment==null){
            return false;
        }
        return true;
    }
    public Long getTopParent_id() {
        return topParent_id;
    }

    public void setTopParent_id(Long topParent_id) {
        this.topParent_id = topParent_id;
    }

    public Long getBlog_id() {
        return blog_id;
    }

    public void setBlog_id(Long blog_id) {
        this.blog_id = blog_id;
    }

    public Long getParentComment_id() {
        return parentComment_id;
    }

    public void setParentComment_id(Long parentComment_id) {
        this.parentComment_id = parentComment_id;
    }

    public Long getComment_id() {
        return comment_id;
    }

    public void setComment_id(Long comment_id) {
        this.comment_id = comment_id;
    }

    public String getComment_nickname() {
        return comment_nickname;
    }

    public void setComment_nickname(String comment_nickname) {
        this.comment_nickname = comment_nickname;
    }

    public String getComment_email() {
        return comment_email;
    }

    public void setComment_email(String comment_email) {
        this.comment_email = comment_email;
    }

    public String getComment_content() {
        return comment_content;
    }

    public void setComment_content(String comment_content) {
        this.comment_content = comment_content;
    }

    public String getComment_avatar() {
        return comment_avatar;
    }

    public void setComment_avatar(String comment_avatar) {
        this.comment_avatar = comment_avatar;
    }

    public Date getComment_createTime() {
        return comment_createTime;
    }

    public void setComment_createTime(Date comment_createTime) {
        this.comment_createTime = comment_createTime;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    public List<Comment> getReplyComment() {
        return replyComment;
    }

    public void setReplyComment(List<Comment> replyComment) {
        this.replyComment = replyComment;
    }

    public Comment getParentComment() {
        return parentComment;
    }

    public void setParentComment(Comment parentComment) {
        this.parentComment = parentComment;
    }
}
